import { http } from '../utils/http'
import { HouseDetails } from '../types/house'
export const insertHistory = (contarctId:number) => {
  return http({
    method: 'POST',
  	url: `/app/history/insert/${contarctId}`,
   
  })
}

export const getHistory = () => {
  return http<HouseDetails[]>({
    method: 'GET',
	url: `/app/history/get	`,
   
  })
}

export const clearHistroy = () => {
  return http({
    method: 'DELETE',
	url: `/app/history/clear`,
   
  })
}